package cn.hanna.springcloudalibaba.service;

import cn.hanna.springcloud.entities.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @author smileha
 * @create 2021-10-22 23:09
 * @description
 */
@FeignClient(value = "seata-storage-service")
public interface StorageService {

    @PostMapping("/storage/decrease/{id}/{count}")
    CommonResult decrease(@PathVariable("id") Long productId,
                                 @PathVariable("count") Integer count);
}
